#include <iostream>

using namespace std;

struct Person {
    int a;
    int b;
    const char* p;
};

int main () {

    Person* ptr = new Person();
    ptr->a = 2;
    ptr->b = 3;
    ptr->p = "abc";
    cout << ptr->a << " " << ptr->b << " " << ptr->p << endl;
    delete ptr;
    ptr = nullptr;
    cout << ptr->a << " " << ptr->b << " " << ptr->p << endl;

    return 0;
}